/**
 * Created by Nico on 2015/12/30.
 */
var config = require('../../db_config.js');
var Schema = require('jugglingdb').Schema;
require('events').EventEmitter.prototype._maxListeners = 30; //设置最大监听数（默认最带为11，这里有27张表）

//设置db链接
var schema = new Schema('mysql', config.db);

require('./initialize.js')(schema);

module.exports = schema;